package ooday02;

public class Doctor extends Person {
    /*
    double salary;
    Doctor(String name,int age,String address){
        super(name,age,address);
        this.salary=salary;
    }
    void cut(){
        System.out.println(name+"正在做手术");
    }

     */

    double salary;
    Doctor(String name,int age,String address){
        super(name,age,address);
        this.salary=salary;
    }
    void cut(){
        System.out.println(name+"正在做手术");
    }
}
